package com.frontop.system.modules.sys.service.impl;

import com.frontop.system.modules.sys.mapper.SysOrganizationMapper;
import com.frontop.system.modules.sys.model.SysOrganizationMenu;
import com.frontop.system.modules.sys.mapper.SysOrganizationMenuMapper;
import com.frontop.system.modules.sys.service.SysOrganizationMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author YangJia
 * @since 2022-01-18
 */
@Service
public class SysOrganizationMenuServiceImpl extends ServiceImpl<SysOrganizationMenuMapper, SysOrganizationMenu> implements SysOrganizationMenuService {
    @Autowired
    SysOrganizationMenuMapper sysOrganizationMenuMapper;

    @Override
    public List<Integer> getSysMenuIdsByOrgId(Integer orgId) {
        return sysOrganizationMenuMapper.getSysMenuIdsByOrgId(orgId);
    }

    @Override
    public List<Integer> getMenuIdsByOrgId(Integer orgId) {
        return sysOrganizationMenuMapper.getMenuIdsByOrgId(orgId);
    }
}
